package com.networklib.task.service;

import com.networklib.task.base.ATask;
import com.networklib.task.base.TaskService;

import java.util.Iterator;

public abstract class ConcurrentExcute extends TaskService {

    @Override
    public void excute() {
        Iterator<ATask> iterator = aTaskHashMap.values().iterator();
        if (iterator.hasNext()) {
            this.submit(iterator.next());
        }
    }
}